package edu.hnnu.sport_event.service;

import edu.hnnu.sport_event.entity.Admin;
import edu.hnnu.sport_event.entity.Student;
import edu.hnnu.sport_event.mapper.AdminMapper;
import edu.hnnu.sport_event.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RegisterService {

    @Resource
    AdminMapper adminMapper;
    @Resource
    StudentMapper studentMapper;

    public int studentRegister(Student student) { return studentMapper.insert(student); }

    public int adminRegister(Admin admin) { return adminMapper.insert(admin); }

}
